package com.lottery.pay.Utils.wxUtil;

import org.apache.commons.lang.RandomStringUtils;

/**
 * js-sdk所需参数
 */
public class JsParam {
	private String noncestr = RandomStringUtils.randomAlphanumeric(8);// 生成8位随机字符串;
	private String jsapi_ticket = "";
	private int timestamp = (int) (System.currentTimeMillis() / 1000);// 取当前时间，并精确到秒
	private String url = "";
	private String sign = "";

	public JsParam() {

	}

	public JsParam(String url, String jsapi_ticket) {
		this.url = url;
		this.jsapi_ticket = jsapi_ticket;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getNoncestr() {
		return noncestr;
	}

	public String getJsapi_ticket() {
		return jsapi_ticket;
	}

	public int getTimestamp() {
		return timestamp;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
}
